package com.yyx.temp;
import com.yyx.dao.TestDao;
import com.yyx.proxy.TestInvocationHandler;
import java.lang.reflect.Method;
public class $Proxy implements TestDao{
	private TestInvocationHandler target;
	public $Proxy (TestInvocationHandler target){
		this.target =target;
	}
	public void update(int p0,int p1) {
		Method method = null;
		 try {
		method = Class.forName("com.yyx.dao.TestDao").getDeclaredMethod("update",int.class,int.class);
		Object[] args={p0,p1};
		target.invoke(method,args);
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Throwable throwable) {
			throwable.printStackTrace();
		}
	}
	public void delete(String p0) {
		Method method = null;
		 try {
		method = Class.forName("com.yyx.dao.TestDao").getDeclaredMethod("delete", String.class);
		Object[] args={p0};
		target.invoke(method,args);
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Throwable throwable) {
			throwable.printStackTrace();
		}
	}
	public void query() {
		Method method = null;
		 try {
		method = Class.forName("com.yyx.dao.TestDao").getDeclaredMethod("query");
		Object[] args={};
		target.invoke(method,args);
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Throwable throwable) {
			throwable.printStackTrace();
		}
	}
}